 

package com.zdkj.subway.stm.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zdkj.subway.stm.dto.in.SwStConductorSettleDto;
import com.zdkj.subway.stm.dto.in.SwStElectronicReceiptDTO;
import com.zdkj.subway.stm.entity.SwStElectronicReceipt;
import com.zdkj.subway.stm.entity.SwStElectronicReceiptDetails;

import java.util.List;

/**
 * 电子回执单
 *
 * @author songtuo
 * @date 2020-07-13 13:34:08
 */
public interface SwStElectronicReceiptService extends IService<SwStElectronicReceipt> {

    /**
     * 保存完之后 返回主表 营销表维护主表的ID 防止修改的时候需要同步
     *
     * @param swStElectronicReceiptDTO
     * @return
     */
    SwStElectronicReceipt saveSwStElectronicReceipt(SwStElectronicReceiptDTO swStElectronicReceiptDTO);

    SwStElectronicReceiptDTO getCascadeById(Integer id);

    /**
     * 电子电子游览数据
     * @param electronicReceipts
     * @param rid
     * @return
     */
    boolean updateSwStElectronicReceipt(List<SwStElectronicReceiptDetails> electronicReceipts,Integer rid);

    /**
     * 批量更新电子游览状态
     * @param ids
     * @param status
     * @return
     */
    boolean updateApprovalStatus(List<Integer> ids, String status);

}
